cmake_minimum_required(VERSION 3.14.0)
project(cam_control_lib VERSION 0.1.0 LANGUAGES C CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# find_package(Boost REQUIRED)
find_package(WEBSOCKETPP REQUIRED)
# find_package(OpenCV REQUIRED)

AUX_SOURCE_DIRECTORY(./src SRCS)
AUX_SOURCE_DIRECTORY(./include INC)

include_directories(${OpenCV_INCLUDE_DIRS})
LINK_DIRECTORIES("./hksdk-arm/hksdk/lib")

add_library(cam_control_lib ${SRCS} ${INC})

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)

target_link_libraries(cam_control_lib hcnetsdk boost_system boost_filesystem -pthread)
target_compile_definitions(cam_control_lib PRIVATE LINUX __linux__ __LINUX__)